from django.db import models

# Create your models here.
class User(models.Model):
    username = models.CharField("用户名",max_length=20,unique=True,null=False)
    password=models.CharField("密码",max_length=20,null=False)
    nickname = models.CharField("昵称",max_length=10)
    def __str__(self):
        return self.username

    class Meta:
        db_table = 'user_list'